from cou import create_app,db
from flask_script import Manager
from flask_migrate import Migrate
from flask_migrate import MigrateCommand
import os





mode=os.getenv("ENV_CLUSTER", 'development')
if mode !='development':
    mode='product'
app=create_app(mode)
manager = Manager(app)
Migrate(app,db)
manager.add_command("db",MigrateCommand)





if __name__ == "__main__":
    manager.run()